package com.ruoyi.back.domain.v3

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.baomidou.mybatisplus.extension.service.IService
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
import com.ruoyi.back.mapper.SinglePayRecordMapper
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.apache.ibatis.annotations.Mapper
import org.springframework.stereotype.Service
import java.util.Date
import javax.persistence.*

@TableName("fly_single_pay_record")
@ApiModel("单次支付制作")
@Table(name = "fly_single_pay_record")
@Entity
data class SinglePayRecord(

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(type = IdType.AUTO)
    var id: Long? = null,

    @ApiModelProperty("风格类型 1.文生图 2.图生图 3.头像变卡通")
    var type: Int? = null,

    @ApiModelProperty("输入内容，长度不超过100个字")
    var text: String? = null,

    @ApiModelProperty("图片分辨率，可支持1024*1024、1024*1536、1536*1024")
    var resolution: String? = null,

    @ApiModelProperty("风格id")
    var style: String? = null,

    @ApiModelProperty("图片生成数量，支持1-6张")
    var num: Int? = 1,


    @ApiModelProperty("原始图片")
    var inputUrl: String? = null,


    @ApiModelProperty("描述词")
    var prompt: String? = null,

    @ApiModelProperty("不希望出现的内容")
    var negativePrompt: String? = null,

    @ApiModelProperty("直接传尺寸")
    var resultConfig: String? = null,

    @ApiModelProperty("原图参考度")
    var strength: Float? = null,
)





interface SinglePayRecordService : IService<SinglePayRecord>

@Service
class SinglePayRecordServiceImp : ServiceImpl<SinglePayRecordMapper, SinglePayRecord>(), SinglePayRecordService

